<%@ page language="java" pageEncoding="UTF-8" import="net.mysoft.framework.i18n.Locales"%>
<%@ page import="java.util.Locale"%>
<%@ page isELIgnored="false"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	Locale locale = Locales.getLocale();
%>
<base href="<%=basePath%>"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="description" content="dagongFrameWork">
<!-- <script type="text/javascript" src="common/binary/dynaload.js" charset="utf-8"></script> -->
<!-- jquery库 -->
<script type="text/javascript" src="common/jslib/jquery-1.8.2.min.js" charset="utf-8"></script>
<!-- jquery Cookie插件 -->
<script type="text/javascript" src="common/jslib/jquery.cookie.js" charset="utf-8"></script>
<!-- easyui相关库 -->
<link id="easyuiTheme" rel="stylesheet" href="common/jslib/jquery-easyui-1.3.1/themes/gray/easyui.css" type="text/css"></link>
<link rel="stylesheet" href="common/jslib/jquery-easyui-1.3.1/themes/icon.css" type="text/css"></link>
<script type="text/javascript" src="common/jslib/jquery-easyui-1.3.1/jquery.easyui.min.js" charset="utf-8"></script>
<%if(locale.equals(Locale.CHINA)){ %>
<script type="text/javascript" src="common/jslib/jquery-easyui-1.3.1/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
<!-- script type="text/javascript" src="common/jslib/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" charset="utf-8"></script><!-- xhEditor插件库 -->
<%}else{ %>
<script type="text/javascript" src="common/jslib/jquery-easyui-1.3.1/locale/easyui-lang-en.js" charset="utf-8"></script>
<!-- script type="text/javascript" src="common/jslib/xheditor-1.1.14/xheditor-1.1.14-en.min.js" charset="utf-8"></script><!-- xhEditor插件库 -->
<%} %>
 <!--<link rel="stylesheet" href="common/style/main.css" type="text/css">  -->
<link rel="stylesheet" href="common/style/head.css" type="text/css"></link>
<!-- <link rel="stylesheet" type="text/css" href="common/style/zTreeStyle/zTreeStyle.css"></link> -->
<!-- <link rel="stylesheet" href="common/style/validate.css" type="text/css"></link> -->
<!-- easyui插件库 -->

<link rel="stylesheet" href="common/jslib/jquery-easyui-portal/portal.css" type="text/css"></link>
<script type="text/javascript" src="common/jslib/jquery-easyui-portal/jquery.portal.js" charset="utf-8"></script>
<!-- 自定义库 -->
<script type="text/javascript" src="common/jslib/smartUtil.js" charset="utf-8"></script>

<!-- 验证插件 -->
<script type="text/javascript" src="common/jslib/validatebox.expand.js" charset="utf-8"></script>
<script type="text/javascript" src="platform/js/jqueryUtil.js" charset="utf-8"></script>
<script type="text/javascript" src="common/jslib/jquery.ztree.all-3.5.min.js"></script>

<!--script type="text/javascript" src="common/jslib/easyvalidator/easy_validator.pack.js" charset="utf-8"></script>
<script type="text/javascript" src="common/jslib/easyvalidator/jquery.bgiframe.min.js" charset="utf-8"></script-->
<script type="text/javascript">
	var orgtypeenums = {};
	var sexenums = {};
	$(function() {
		orgtypeenums = ajaxGetEnum("OrgTypeEnum");
		sexenums = ajaxGetEnum("SexEnum");
	});
	
	function ajaxGetEnum(name) {
		var result = {};
		$.ajax({
			url:"enum/get.action",
			data:{name:name},
			dataType:"json",
			async:false,
			success:function(data) {
				result = data;
			}
		});
		return result;
	}
	
	//json根据key取值
	function findValueByKey(json, key) {
		var value = "";
		$.each(json, function(i, n) {
			if(n.code==key) {
				value = n.desc;return false;	
			}
		});
		return value;
	}
</script>
